<template>
  <el-card :header="title" class="stat-chart">
    <v-chart :option="option" :style="{height: height}" autoresize />
  </el-card>
</template>

<script setup>
import { defineProps } from 'vue'
import VChart from 'vue-echarts'

defineProps({
  title: String,
  option: Object,
  height: { type: String, default: '320px' }
})
</script>

<style scoped>
.stat-chart {
  height: 100%;
  min-height: 320px;
}
</style>
